import request from '@/utils/request'

// 查询草药模板项列表
export function listHerbalModelItem(query) {
  return request({
    url: '/dms/herbalModelItem/list',
    method: 'get',
    params: query
  })
}

// 查询草药模板项详细
export function getHerbalModelItem(id) {
  return request({
    url: '/dms/herbalModelItem/' + id,
    method: 'get'
  })
}

// 新增草药模板项
export function addHerbalModelItem(data) {
  return request({
    url: '/dms/herbalModelItem',
    method: 'post',
    data: data
  })
}

// 修改草药模板项
export function updateHerbalModelItem(data) {
  return request({
    url: '/dms/herbalModelItem',
    method: 'put',
    data: data
  })
}

// 删除草药模板项
export function delHerbalModelItem(id) {
  return request({
    url: '/dms/herbalModelItem/' + id,
    method: 'delete'
  })
}
